from django import template
from datetime import datetime
from django.utils.timezone import now as aware_now,localtime
from utils.datetime_paser import str_to_datetime


register = template.Library()


@register.filter
def price_to_str(value):
    if value == 0:
        return '免费'
    else:
        return value
